package com.graduate.twentyone.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.ToString;

import java.util.Date;
import java.util.List;
@ToString
public class Sale {
//点菜信息
    Integer sid;
    Integer num;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    Date  datetime;
    Integer fid;
    Integer status;
    Integer uid;
    Float fprice;
    String fname;
    List<Sale> saleList;
    Integer moneyStatus;
    String  tname ;

    public Sale() {
    }

    public Sale(Integer sid, Integer num, Date datetime, Integer fid, Integer status, Integer uid, Float fprice, String fname, List<Sale> saleList, Integer moneyStatus, String tname) {
        this.sid = sid;
        this.num = num;
        this.datetime = datetime;
        this.fid = fid;
        this.status = status;
        this.uid = uid;
        this.fprice = fprice;
        this.fname = fname;
        this.saleList = saleList;
        this.moneyStatus = moneyStatus;
        this.tname = tname;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Float getFprice() {
        return fprice;
    }

    public void setFprice(Float fprice) {
        this.fprice = fprice;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public List<Sale> getSaleList() {
        return saleList;
    }

    public void setSaleList(List<Sale> saleList) {
        this.saleList = saleList;
    }

    public Integer getMoneyStatus() {
        return moneyStatus;
    }

    public void setMoneyStatus(Integer moneyStatus) {
        this.moneyStatus = moneyStatus;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }
}
